/*定义动画，淡出*/
@keyframes fadeOut {
    0% {opacity: 0;}
    10% {opacity: 1;}
    90% {opacity: 1;}
    100% {opacity: 0;}
}

/*让alert类淡出*/
.alert {
  animation: fadeOut 2700ms ease-in 0s 1 forwards;
}